public class Timer {
	
	private static long time = 0;
	private static Timer instance = null;

	protected Timer() {
		// Exists only to defeat instantiation.
	}

	public static Timer getInstance() {
		if (instance == null) {
			time = 0;
			instance = new Timer();
		}
		return instance;
	}

	public long getTime() {
		return time;
	}

	public long tick() {
		time++;
		return time;
	}

}
